<template>
  <div class="container">
    <!-- nav -->
    <TopNav></TopNav>

    <!-- codelist -->
    <div class="codelist">
      <div class="img-container">
        <img class="img" :src="img" alt="">
      </div>
      <div class="codelist-text">
        <div style="font-size: 18px; margin-bottom: 7px;">卡密：12345678</div>
        <div class="EffectiveTime">有效时间：2023.02.17-2023.02.28</div>
      </div>
    </div>
  </div>
</template>

<script>
import TopNav from "../components/topnav.vue";
export default {
  components: {
    TopNav,
  },
  data() {
    return {
      img:require('../assets/iconfont/组 12@3x.jpg')
    };
  },
  methods: {},
  mounted() {
    this.$toast('使用成功');
  },
};
</script>

<style scoped>
.img{
  width: 80px;
}
.container {
  background-color: #f4f5f7;
  height: 100vh;
  width: 100vw;
}
.EffectiveTime {
  color: #a19d9d;
}
.codelist {
  background-color: #fff;
  box-sizing: border-box;
  margin: 20px;
  width: 90vw;
  height: 130px;
  box-shadow: 0px 0px 20px 1px #e2dfdf;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.codelist-text{
  font-size: 12px;
  margin-left: 15px;
}
</style>
